package com.aihna.mall.domain.bo;

import com.aihna.mall.domain.StoreUserBill;
import com.aihna.common.core.validate.AddGroup;
import com.aihna.common.core.validate.EditGroup;
import com.aihna.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 用户账单业务对象 vvl_store_user_bill
 *
 * @author Joseph.Chen
 * @date 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = StoreUserBill.class, reverseConvertGenerate = false)
public class StoreUserBillBo extends BaseEntity {

    /**
     * 用户账单id
     */
    @NotNull(message = "用户账单id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户uid
     */
    @NotNull(message = "用户uid不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uid;

    /**
     * 关联id
     */
    @NotBlank(message = "关联id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String linkId;

    /**
     * 0 = 支出 1 = 获得
     */
    @NotNull(message = "0 = 支出 1 = 获得不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer pm;

    /**
     * 账单标题
     */
    @NotBlank(message = "账单标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 明细种类
     */
    @NotBlank(message = "明细种类不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;

    /**
     * 明细类型
     */
    @NotBlank(message = "明细类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 明细数字
     */
    @NotNull(message = "明细数字不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal number;

    /**
     * 剩余
     */
    @NotNull(message = "剩余不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal balance;

    /**
     * 备注
     */
    private String mark;

    /**
     * 0 = 带确定 1 = 有效 -1 = 无效
     */
    private Integer status;


}
